package com.jt.Demo06;

import com.jt.Demo06.config.SpringConfig;
import com.jt.Demo06.mapper.UserMapper;
import com.jt.Demo06.mapper.UserMapperImpl;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Spring_value {
    public static void main(String[] args) {
        ApplicationContext context = new AnnotationConfigApplicationContext(SpringConfig.class);
        UserMapper mapper = context.getBean(UserMapper.class);
        mapper.addUser();
    }
}
